﻿using System.Collections.Generic;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 在BatchWriteRow操作中，表示要删除的一行信息
    /// </summary>
    [ProtoContract(Name = "DeleteRowInBatchWriteRowRequest")]
    public class DeleteRowInBatchWriteRowRequest
    {
        public DeleteRowInBatchWriteRowRequest()
        {
                
        }
        public DeleteRowInBatchWriteRowRequest(Condition condition,List<Column> primaryKey)
        {
            this.Condition = condition;
            this.PrimaryKey = primaryKey;
        }
        /// <summary>
        ///  在数据删除前是否进行存在性检查
        /// </summary>
        [ProtoMember(1, Name = "condition", IsRequired = true)]
        public Condition Condition { get; set; }
        /// <summary>
        /// 请求删除的行的全部PrimaryKeyColumn
        /// </summary>
        [ProtoMember(2, Name = "primary_key")]
        public List<Column> PrimaryKey { get; set; }
    }
}
